package com.huilai.platform.country_platform.core;

/**
 * 作者：洪霓
 * 日期：2023/2/26
 * 注释：
 */
public enum AuditEnum {
    ZERO(0,"未审核"),
    ONE(1,"审核通过"),
    TWO(2,"审核不通过");

    private Integer status;
    private String statusString;

    AuditEnum(Integer status, String statusString){
        this.status = status;
        this.statusString = statusString;
    }

    public static String  getStringByStatus(Integer status) {
        for (AuditEnum auditEnum : AuditEnum.values()) {
            if (auditEnum.status.equals(status)) {
                return auditEnum.statusString;
            }
        }
        return "null";
    }
}
